package com.neuedu.spring;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

public class UserService {

    @Autowired  //从容器中获取一个 bean,注入到userServie
    private UserDao userDao ;


    public void save(){

        System.out.println("UserService.save");
        userDao.save();


    }
}
